package com.api.shopapi.service;

import com.api.shopapi.entity.AccountingRecord;
import com.api.shopapi.entity.dto.AccountingRecordDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface AccountingRecordService {

    int insert(AccountingRecord accountingRecord);

    int update(AccountingRecord accountingRecord);

    int delete(String accountingRecordCode);

    AccountingRecord getByAccountingRecordCode(String accountingRecordCode);

    PageInfo<AccountingRecordDTO> getPage(int pageIndex, int pageSize, String businessCode, String startTime, String endTime, int status);
}
